var Index = function () {

    return {
        
        //main function to initiate the module
        ReloadIframe: function (objControl) {
            
            var iframe = $j('#iframe-page-view');
            var selection = $j(objControl).children(':selected').text();
            var url = null;
            
            switch (selection)
            {
                case 'About':
                    url = '../../../php/about';
                    break;
                case 'Contact':
                    url = '../../../php/contact';
                    break;
                case 'Home':
                    url = '../../../php/home';
                    break;
                case 'Privacy Policy':
                    url = '../../../php/privacy';
                    break;
                case 'Legal':
                    url = '../../../php/legal';
                    break;
            }
            
            iframe.attr('src', url);
        },
        
        ResizeIframe: function (objControl) {
            objControl.style.height = objControl.contentWindow.document.body.scrollHeight + 'px';
        }
    };

}();